package com.map.hashmap;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public class IterateMap {
public static void main(String[] args) {
	ArrayList<String> alist=new ArrayList<String>();
	alist.add("Home");
	alist.add("Management");
	alist.add("Configuration");
	Map<String, ArrayList<String>> map=new HashMap<String, ArrayList<String>>();
	map.put("cluster", alist);
	map.put("Server", alist);
	map.put("cluster", alist);
	map.put("J2EE", alist);
	for(Map.Entry<String, ArrayList<String>> iterate:map.entrySet()){
		String key=iterate.getKey();
		ArrayList<String> value=iterate.getValue();
		for(String astring:value){
			//System.out.println("Key : "+iterate.getKey()+ " Value : "+iterate.getValue());
			System.out.println(key+" "+value);
		}
		
	}
}
}
